﻿using Microsoft.EntityFrameworkCore;

namespace Ch12.Models
{
    public partial class ApplicationDbContext : DbContext
    {
        /// <summary>
        /// http上下文
        /// </summary>
        public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
            : base(options)
        {
        }

        #region business entities
        public virtual DbSet<Account> Accounts { get; set; }
        public virtual DbSet<House> Houses { get; set; }
        public virtual DbSet<PaymentRecord> PaymentRecords { get; set; }
        public virtual DbSet<Proprietor> Proprietors { get; set; }
        #endregion
    }
}
